<?php


namespace app\admin\controller;


use app\BaseController;
use app\Request;
use think\facade\Db;
use think\facade\View;

class General extends BaseController
{





    public function index(){
        $tables = $list = [];
        $list = Db::query("SHOW TABLES");
        foreach ($list as $key => $row) {
            $tables[] = ['name' => reset($row), 'rows' => 0];
        }
        $data['tables'] = $tables;
        $data['saved_sql'] = [];
        View::assign($data);
        return View::fetch();
    }

}